package com.wodsy.phoenix.dataobject.shopc.model;

// Generated 2015-3-6 15:40:39 by Hibernate Tools 3.4.0.CR1

import com.wodsy.phoenix.dataobject.base.PhoenixObject;
import com.wodsy.phoenix.dataobject.base.PhoenixRequest;
import com.wodsy.phoenix.dataobject.base.PhoenixResponse;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbShopReported generated by hbm2java
 */
@Entity
@Table(name = "tb_shop_reported", catalog = "shopc")
public class ShopReport extends PhoenixObject implements Serializable,PhoenixRequest,PhoenixResponse {

	private Integer id;
	private int userId;
	private int shopId;
	private String reportOption;
	private String reportDesc;
	private Date reportTime;

	public ShopReport() {
	}

	public ShopReport(int userId, int shopId, String reportOption,
			String reportDesc, Date reportTime) {
		this.userId = userId;
		this.shopId = shopId;
		this.reportOption = reportOption;
		this.reportDesc = reportDesc;
		this.reportTime = reportTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id", nullable = false)
	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Column(name = "shop_id", nullable = false)
	public int getShopId() {
		return this.shopId;
	}

	public void setShopId(int shopId) {
		this.shopId = shopId;
	}

	@Column(name = "report_option", nullable = false, length = 30)
	public String getReportOption() {
		return this.reportOption;
	}

	public void setReportOption(String reportOption) {
		this.reportOption = reportOption;
	}

	@Column(name = "report_desc", nullable = false)
	public String getReportDesc() {
		return this.reportDesc;
	}

	public void setReportDesc(String reportDesc) {
		this.reportDesc = reportDesc;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "report_time", nullable = false, length = 19)
	public Date getReportTime() {
		return this.reportTime;
	}

	public void setReportTime(Date reportTime) {
		this.reportTime = reportTime;
	}

}
